package panda.transaction.recovery;

import panda.log.BasicLogRecord;
import panda.log.LogManager;

public class CheckPointRecord implements LogRecord {
	public CheckPointRecord() {
	}

	public CheckPointRecord(BasicLogRecord rec) {
	}

	public int getTransactionNumber() {
		return 0;
	}

	public int getType() {
		return CHECKPOINT;
	}

	public void undo(int transactionNumber) {}

	public int writeToLog() {
		return logManager.append(new Object[]{CHECKPOINT});
	}

}
